#include "SDLSprite.h"

SDLSprite::SDLSprite(): SDLImage()
{
	type = 3;
	clip = SDL_Rect();
	clip.x = clip.y = clip.w = clip.h = 0;
}

SDLSprite::SDLSprite(SDL_Surface* image): SDLImage(image)
{
	type = 3;
	clip.x = clip.y = clip.w = clip.h = 0;
}

void SDLSprite::setClip(SDL_Rect clip)
{
	this->clip.x = clip.x;
	this->clip.y = clip.y;
	this->clip.w = clip.w;
	this->clip.h = clip.h;
}

void SDLSprite::update()
{

}

void SDLSprite::setXY(float x, float y)
{
	clip.x = x;
	clip.y = y;
}

SDL_Rect SDLSprite::getClip()
{
	return clip;
}
